home *** CD-ROM | disk | FTP | other *** search
- /*
- ### reallocate memory for a 1-d integer vector ###
- */
-
- void rivector(v,nl,nh)
- int nl,nh;
- int *v;
- {
- int *vt;
- vt = (int *) realloc(v,(unsigned) (nh - nl + 1) * sizeof(int));
- if (!vt) {
- system_mess_proc(1,"rivector: memory reallocation failure");
- v = vt;
- }
- else {
- v = vt - nl;
- }
- }
-